﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ManterGrupodeArquivosdeAudio.aspx.cs" Inherits="Manter_Grupo_de_Arquivos_de_Audio" Title="Untitled Page" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
     <div class="demoheading" style="width:400px">Manter Grupo de Arquivos de Audio</div>
     <asp:Panel ID="Panel2" runat="server" CssClass="collapsePanelHeader" 
        Height="20px" Width="258px">
        <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
          <div style="float: left;">Consultar Grupo de Arquivos de Audio</div>
        </div>
     </asp:Panel>
                
    <div style="width:400px">
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
         <ContentTemplate>
             <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                 AutoGenerateColumns="False" DataSourceID="odsGrupoAudio">
                 <Columns>
                     <asp:BoundField DataField="Codigo" HeaderText="Codigo" 
                         SortExpression="Codigo" />
                     <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
                     <asp:BoundField DataField="Descriçao" HeaderText="Descriçao" 
                         SortExpression="Descriçao" />
                     <asp:CheckBoxField DataField="Compartilhamento" HeaderText="Compartilhamento" 
                         SortExpression="Compartilhamento" />
                     <asp:BoundField DataField="Usuario" HeaderText="Usuario" 
                         SortExpression="Usuario" />
                     <asp:CommandField ShowDeleteButton="True" />
                 </Columns>
             </asp:GridView>
         </ContentTemplate>
       </asp:UpdatePanel>
   </div> 
   
    <asp:ObjectDataSource ID="odsGrupoAudio" runat="server" 
        DataObjectTypeName="Negocios.GrupoAudio" DeleteMethod="Deletar" 
        InsertMethod="Insere" OldValuesParameterFormatString="original_{0}" 
        SelectMethod="ConsultaTodos" TypeName="Negocios.GrupoDeAudioBLL" 
        UpdateMethod="Atualiza"></asp:ObjectDataSource>
   
   <br />
   <div class="collapsePanelHeader" style="width:400px; height:15px"></div>
   <div style="width:400px">
     <asp:UpdatePanel ID="UpdatePanel2" runat="server">
         <ContentTemplate>
             <table style="width: 100%" class="divDados">
                 <tr class="divOID">
                     <td style="width: 111px">
                         <asp:Label ID="Label1" runat="server" Text="Código"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="tbCodigo" runat="server" Enabled="False"></asp:TextBox>
                         &nbsp;
                         <asp:Button ID="btNovo" runat="server" Text="Novo" onclick="tbNovo_Click" />
                     </td>
                 </tr>
                 <tr>
                     <td style="width: 111px">
                         <asp:Label ID="label2" runat="server" Text="Nome"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="tbNome" runat="server" Enabled="False" Height="30px" 
                             Width="320px"></asp:TextBox>
                     </td>
                 </tr>
                 <tr>
                     <td style="width: 111px">
                         <asp:Label ID="Label3" runat="server" Text="Descrição"></asp:Label>
                     </td>
                     <td>
                         <asp:TextBox ID="tbDescrição" runat="server" Enabled="False" Height="39px" 
                             TextMode="MultiLine" Width="318px"></asp:TextBox>
                     </td>
                 </tr>
                 <tr>
                     <td style="width: 111px">
                         <asp:Label ID="tbCompartilhado" runat="server" Text="Compartilhado"></asp:Label>
                     </td>
                     <td>
                         <asp:CheckBox ID="cbCompartilhado" runat="server" Enabled="False" Text="Sim" />
                     </td>
                 </tr>
                 <tr>
                     <td style="width: 111px">
                         <asp:Label ID="tbUsuário" runat="server" Text="Usuário"></asp:Label>
                     </td>
                     <td>
                         <asp:DropDownList ID="ddlUsuario" runat="server" Enabled="False">
                         </asp:DropDownList>
                     </td>
                 </tr>
                 <tr>
                     <td style="width: 111px">
                         &nbsp;</td>
                     <td>
                         <asp:Button ID="btGravar" runat="server" Text="Gravar" Enabled="False" 
                             onclick="btGravar_Click" />
                         <cc1:ConfirmButtonExtender ID="btGravar_ConfirmButtonExtender" runat="server" 
                             ConfirmText="Deseja gravar?" Enabled="True" TargetControlID="btGravar">
                         </cc1:ConfirmButtonExtender>
                         &nbsp;
                         <asp:Button ID="btCancelar" runat="server" Text="Cancelar" Enabled="False" 
                             onclick="btCancelar_Click" />
                     </td>
                 </tr>
             </table>
         </ContentTemplate>
       </asp:UpdatePanel>
  </div>
</asp:Content>

